package service;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.Gson;

import mapper.Mapper;
import mapper.SystemInfoMapper;

public class SystemInfoService extends Mapper<SystemInfoMapper>{
	public String getInfoJson() {
		Map<String, Object> info = getMapper().getInfo();
		return new Gson().toJson(info);
	}
	public void setInfo(String title, String company, String icp) {
		Map<String, Object> info = new HashMap<>();
		info.put("title", title);
		info.put("company", company);
		info.put("icp", icp);
		getMapper().setInfo(info);
	}
}
